-- GENERATED SPELL FOR [Drakkari God Hunter] --


function spell0_29820(pUnit, Event) --@Arcane Shot,n/a--
pUnit:FullCastSpellOnTarget(55624,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29820', 0, 1)
end

function spell1_29820(pUnit, Event) --@Arcane Shot,n/a--
pUnit:FullCastSpellOnTarget(58973,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29820', 0, 1)
end

function spell2_29820(pUnit, Event) --@Deterrence,Self--
pUnit:FullCastSpellOnTarget(31567,pUnit)
pUnit:RegisterEvent('Sorts_29820', 10254, 1)
end

function spell3_29820(pUnit, Event) --@Flare,n/a--
pUnit:FullCastSpellOnTarget(55798,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29820', 30286, 1)
end

function spell4_29820(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(35946,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29820', 543, 1)
end

function spell5_29820(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(59146,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29820', 680, 1)
end

function spell6_29820(pUnit, Event) --@Tranquilizing Shot,n/a--
pUnit:FullCastSpellOnTarget(55625,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29820', 653, 1)
end

function Sorts_29820(pUnit, Event)
local choix_sorts_29820 = math.random(0, 6)
if choix_sorts_29820 == 0 then
pUnit:RegisterEvent('spell0_29820', 1, 1)
end
if choix_sorts_29820 == 1 then
pUnit:RegisterEvent('spell1_29820', 1, 1)
end
if choix_sorts_29820 == 2 then
pUnit:RegisterEvent('spell2_29820', 1, 1)
end
if choix_sorts_29820 == 3 then
pUnit:RegisterEvent('spell3_29820', 1, 1)
end
if choix_sorts_29820 == 4 then
pUnit:RegisterEvent('spell4_29820', 1, 1)
end
if choix_sorts_29820 == 5 then
pUnit:RegisterEvent('spell5_29820', 1, 1)
end
if choix_sorts_29820 == 6 then
pUnit:RegisterEvent('spell6_29820', 1, 1)
end
end

function mob29820_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29820', math.random(1500, 3000), 1)
end

function mob29820_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29820_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29820_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29820, 1, 'mob29820_Action')
RegisterUnitEvent(29820, 2, 'mob29820_Leave')
RegisterUnitEvent(29820, 3, 'mob29820_Kill')
RegisterUnitEvent(29820, 4, 'mob29820_Die')
